<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <base href="<%= basePath%>"/>
    <link href="jquery/bootstrap_3.3.0/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
    <link href="jquery/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css" type="text/css" rel="stylesheet"/>
	<link href="jquery/bs_pagination-master/css/jquery.bs_pagination.min.css" type="text/css" rel="stylesheet"/>

    <script type="text/javascript" src="jquery/jquery-1.11.1-min.js"></script>
    <script type="text/javascript" src="jquery/bootstrap_3.3.0/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="jquery/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js"></script>
    <script type="text/javascript" src="jquery/bootstrap-datetimepicker-master/locale/bootstrap-datetimepicker.zh-CN.js"></script>
	<script type="text/javascript" src="jquery/bs_pagination-master/js/jquery.bs_pagination.min.js"></script>
	<script type="text/javascript" src="jquery/bs_pagination-master/localization/en.js"></script>
    <script type="text/javascript">
        function showClue(pageNo, rowsPerPage) {
            var fullname = $("#query_fullname").val()
            var company = $("#query_company").val()
            var phone = $("#query_phone").val()
            var source = $("#query_source").val()
            var owner = $("#query_owner").val()
            var mphone = $("#query_mphone").val()
            var state = $("#query_state").val()
            $.ajax({
                url: "workbench/clue/queryClueByConditions.do",
                type: "post",
                data: {
                    fullname: fullname,
                    company: company,
                    phone: phone,
                    source: source,
                    owner: owner,
                    mphone: mphone,
                    state: state,
                    pageNo: pageNo,
                    rowsPerPage: rowsPerPage
                },
                dataType: "json",
                success: function (map) {
                    var clueList = map.clueList
                    var html = ""
                    $.each(clueList, function (i, clue) {
                        html += "<tr>"
                        html += "	<td><input type=\"checkbox\" value=\""+clue.id+"\" /></td>"
                        html += "	<td><a style=\"text-decoration: none; cursor: pointer;\" href=\"workbench/clue/toDetail.do?clueId="+clue.id+"\">"+clue.fullname+clue.appellation+"</a></td>"
                        html += "	<td>"+clue.company+"</td>"
                        html += "	<td>"+clue.phone+"</td>"
                        html += "	<td>"+clue.mphone+"</td>"
                        html += "	<td>"+clue.source+"</td>"
                        html += "	<td>"+clue.owner+"</td>"
                        html += "	<td>"+clue.state+"</td>"
                        html += "</tr>"
                    })
                    $("#clueBody").html(html)
                    var totalPages
                    if (map.totalRows % rowsPerPage == 0) {
                        totalPages = map.totalRows / rowsPerPage
                    } else {
                        totalPages = map.totalRows / rowsPerPage + 1
                    }
                    $("#bsDiv").bs_pagination({
                        pageNo: pageNo,
                        rowsPerPage: rowsPerPage,
                        totalRows: map.totalRows,
                        totalPages: totalPages,
                        onChangePage: function (event, obj) {
                            showClue(obj.currentPage, obj.rowsPerPage)
                        }
                    })
                }
            })
        }

        $(function () {
            //点击查询按钮
            $("#queryBtn").click(function (){
                showClue(1,$("#bsDiv").bs_pagination("getOption","rowsPerPage"))
            })
            //点击删除按钮
            $("#deleteBtn").click(function (){
                if (window.confirm("确认删除选中线索吗？")) {
                    var checked=$("input:checked")
                    if(checked.size()==0){
                        alert("请选择要删除的线索！")
                        return
                    }
                    var ids=""
                    $.each(checked,function (){
                        ids+="ids="+this.value+"&"
                    })
                    ids=ids.substr(0,ids.length-1)
                    $.ajax({
                        url:"workbench/clue/deleteClueByIds.do",
                        type:"post",
                        data:ids,
                        dataType:"json",
                        success:function (data){
                            alert(data.msg)
                            if(data.state=="1"){
                                showClue(1,$("#bsDiv").bs_pagination("getOption","rowsPerPage"))
                            }
                        }
                    })
                }
            })
            //点击修改按钮
            $("#editBtn").click(function (){
                var checked= $("input:checked")
                if(checked.size()==0){
                    alert("请选择要修改的线索！")
                    return
                }
                if(checked.size()>1){
                    alert("一次只能修改一条线索！")
                    return;
                }
                var clueId=checked.val()
                $("#hiddenClueId").val(clueId)
                $.ajax({
                    url:"workbench/clue/getClueById.do",
                    type:"post",
                    data:{
                        clueId:clueId
                    },
                    dataType:"json",
                    success:function (clue){
                        $("#edit-clueOwner").val(clue.owner)
                        $("#edit-company").val(clue.company)
                        $("#edit-call").val(clue.appellation)
                        $("#edit-surname").val(clue.fullname)
                        $("#edit-job").val(clue.job)
                        $("#edit-email").val(clue.email)
                        $("#edit-phone").val(clue.phone)
                        $("#edit-website").val(clue.website)
                        $("#edit-mphone").val(clue.mphone)
                        $("#edit-status").val(clue.state)
                        $("#edit-source").val(clue.source)
                        $("#edit-describe").val(clue.description)
                        $("#edit-contactSummary").val(clue.contactSummary)
                        $("#edit-nextContactTime").val(clue.nextContactTime)
                        $("#edit-address").val(clue.address)
                        $("#editClueModal").modal("show")
                    }
                })
            })
            //点击保存修改按钮
            $("#saveEditBtn").click(function (){
                var id=$("#hiddenClueId").val()
                var owner =$("#edit-clueOwner").val()
                var company =$.trim($("#edit-company").val())
                var appellation =$("#edit-call").val()
                var fullname =$.trim($("#edit-surname").val())
                var job=$.trim($("#edit-job").val())
                var email=$.trim($("#edit-email").val())
                var phone=$.trim($("#edit-phone").val())
                var website= $.trim($("#edit-website").val())
                var mphone=$.trim($("#edit-mphone").val())
                var state =$("#edit-status").val()
                var source =$("#edit-source").val()
                var description =$.trim($("#edit-describe").val())
                var contactSummary =$.trim($("#edit-contactSummary").val())
                var nextContactTime =$("#edit-nextContactTime").val()
                var address =$.trim($("#edit-address").val())
                if(owner==""){
                    alert("线索所有者不能为空！")
                    return
                }
                if(company==""){
                    alert("公司名不能为空！")
                    return
                }
                if(fullname==""){
                    alert("线索名称不能为空！")
                    return
                }
                if(appellation==""){
                    alert("称呼不能为空！")
                    return
                }
                $.ajax({
                    url:"workbench/clue/editClue.do",
                    type:"post",
                    data:{
                        id:id,
                        fullname:fullname,
                        appellation:appellation,
                        owner:owner,
                        company:company,
                        job:job,
                        email:email,
                        phone:phone,
                        website:website,
                        mphone:mphone,
                        state:state,
                        source:source,
                        description:description,
                        nextContactTime:nextContactTime,
                        address:address,
                        contactSummary:contactSummary
                    },
                    dataType: "json",
                    success:function (data){
                        alert(data.msg)
                        if(data.state=="1"){
                            $("#editClueModal").modal("hide")
                            showClue($("#bsDiv").bs_pagination("getOption","currentPage"),$("#bsDiv").bs_pagination("getOption","rowsPerPage"))
                        }
                    }
                })
            })
            $("#createBtn").click(function (){
                $("#createForm")[0].reset()
                $("#createClueModal").modal("show")
            })
            $("#saveCreateBtn").click(function (){
                var fullname=$.trim($("#create_name").val())
                var appellation=$.trim($("#create_appellation").val())
                var owner=$.trim($("#create_owner").val())
                var company=$.trim($("#create_company").val())
                var job=$.trim($("#create_job").val())
                var email=$.trim($("#create_email").val())
                var phone=$.trim($("#create_phone").val())
                var website=$.trim($("#create_website").val())
                var mphone=$.trim($("#create_mphone").val())
                var state=$.trim($("#create_state").val())
                var source=$.trim($("#create_source").val())
                var description=$.trim($("#create_description").val())
                var nextContactTime=$.trim($("#create_nextContactTime").val())
                var address=$.trim($("#create_address").val())
                var contactSummary=$.trim($("#create_contactSummary").val())
                if(owner==""){
                    alert("线索所有者不能为空！")
                    return
                }
                if(company==""){
                    alert("公司名不能为空！")
                    return
                }
                if(fullname==""){
                    alert("线索名称不能为空！")
                    return
                }
                if(appellation==""){
                    alert("称呼不能为空！")
                    return
                }
                // var phoneExp=/^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$/
                // if(!phoneExp.test(phone)){
                //     alert("请输入有效电话号码！")
                //     return;
                // }
                // var mphoneExp=/^(\(\d{3,4}-)|\d{3.4}-\)?\d{7,8}$/
                // if(!mphoneExp.test(mphone)){
                //     alert("请输入有效座机号码！")
                //     return;
                // }
                // var websiteExp1=/[a-zA-z]+:\/\/[^\s]*/
                // var websiteExp2=/^https:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?$/
                // if(!(websiteExp1.test(website) || websiteExp2.test(website))){
                //     alert("请输入有效的网址!")
                //     return;
                // }
                // var emailExp=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/
                // if(!emailExp.test(email)){
                //     alert("请输入有效的邮箱！")
                //     return;
                // }
                $.ajax({
                    url:"workbench/clue/createClue.do",
                    type:"post",
                    data:{
                        fullname:fullname,
                        appellation:appellation,
                        owner:owner,
                        company:company,
                        job:job,
                        email:email,
                        phone:phone,
                        website:website,
                        mphone:mphone,
                        state:state,
                        source:source,
                        description:description,
                        nextContactTime:nextContactTime,
                        address:address,
                        contactSummary:contactSummary
                    },
                    dataType: "json",
                    success:function (data){
                        if(data.state=="0"){
                            alert(data.msg)
                        }else{
                            $("#createClueModal").modal("hide")
                            showClue(1,$("#bsDiv").bs_pagination("getOption","rowsPerPage"))
                        }
                    }
                })
            })
            showClue(1, 10)
        });

    </script>
</head>
<body>

<!-- 创建线索的模态窗口 -->
<div class="modal fade" id="createClueModal" role="dialog">
    <div class="modal-dialog" role="document" style="width: 90%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">创建线索</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form" id="createForm">

                    <div class="form-group">
                        <label for="create_owner" class="col-sm-2 control-label">所有者<span
                                style="font-size: 15px; color: red;">*</span></label>
                        <div class="col-sm-10" style="width: 300px;">
                            <select class="form-control" id="create_owner">
                                <option></option>
                                <c:forEach items="${userList}" var="user">
                                    <option value="${user.id}">${user.name}</option>
                                </c:forEach>
                            </select>
                        </div>
                        <label for="create_company" class="col-sm-2 control-label">公司<span
                                style="font-size: 15px; color: red;">*</span></label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="create_company">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="create_appellation" class="col-sm-2 control-label">称呼<span
                                style="font-size: 15px; color: red;">*</span></label>
                        <div class="col-sm-10" style="width: 300px;">
                            <select class="form-control" id="create_appellation">
                                <option></option>
                                <c:forEach items="${appellationList}" var="appellation">
                                    <option value="${appellation.value}">${appellation.text}</option>
                                </c:forEach>
                            </select>
                        </div>
                        <label for="create_name" class="col-sm-2 control-label">姓名<span
                                style="font-size: 15px; color: red;">*</span></label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="create_name">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="create_job" class="col-sm-2 control-label">职位</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="create_job">
                        </div>
                        <label for="create_email" class="col-sm-2 control-label">邮箱</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="create_email">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="create_phone" class="col-sm-2 control-label">公司座机</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="create_phone">
                        </div>
                        <label for="create_website" class="col-sm-2 control-label">公司网站</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="create_website">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="create_mphone" class="col-sm-2 control-label">手机</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="create_mphone">
                        </div>
                        <label for="create_state" class="col-sm-2 control-label">线索状态</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <select class="form-control" id="create_state">
                                <option></option>
                                <c:forEach items="${stateList}" var="state">
                                    <option value="${state.value}">${state.value}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="create_source" class="col-sm-2 control-label">线索来源</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <select class="form-control" id="create_source">
                                <option></option>
                                <c:forEach items="${sourceList}" var="source">
                                    <option value="${source.value}">${source.value}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </div>


                    <div class="form-group">
                        <label for="create_description" class="col-sm-2 control-label">线索描述</label>
                        <div class="col-sm-10" style="width: 81%;">
                            <textarea class="form-control" rows="3" id="create_description"></textarea>
                        </div>
                    </div>

                    <div style="height: 1px; width: 103%; background-color: #D5D5D5; left: -13px; position: relative;"></div>

                    <div style="position: relative;top: 15px;">
                        <div class="form-group">
                            <label for="create_contactSummary" class="col-sm-2 control-label">联系纪要</label>
                            <div class="col-sm-10" style="width: 81%;">
                                <textarea class="form-control" rows="3" id="create_contactSummary"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="create_nextContactTime" class="col-sm-2 control-label">下次联系时间</label>
                            <div class="col-sm-10" style="width: 300px;">
                                <input type="date" class="form-control" id="create_nextContactTime">
                            </div>
                        </div>
                    </div>

                    <div style="height: 1px; width: 103%; background-color: #D5D5D5; left: -13px; position: relative; top : 10px;"></div>

                    <div style="position: relative;top: 20px;">
                        <div class="form-group">
                            <label for="create_address" class="col-sm-2 control-label">详细地址</label>
                            <div class="col-sm-10" style="width: 81%;">
                                <textarea class="form-control" rows="1" id="create_address"></textarea>
                            </div>
                        </div>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="saveCreateBtn">保存</button>
            </div>
        </div>
    </div>
</div>

<!-- 修改线索的模态窗口 -->
<div class="modal fade" id="editClueModal" role="dialog">
    <input type="hidden" id="hiddenClueId">
    <div class="modal-dialog" role="document" style="width: 90%;">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">×</span>
                </button>
                <h4 class="modal-title">修改线索</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form">

                    <div class="form-group">
                        <label for="edit-clueOwner" class="col-sm-2 control-label">所有者<span
                                style="font-size: 15px; color: red;">*</span></label>
                        <div class="col-sm-10" style="width: 300px;">
                            <select class="form-control" id="edit-clueOwner">
                                <option></option>
                                <c:forEach items="${userList}" var="user">
                                    <option value="${user.id}">${user.name}</option>
                                </c:forEach>
                            </select>
                        </div>
                        <label for="edit-company" class="col-sm-2 control-label">公司<span
                                style="font-size: 15px; color: red;">*</span></label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="edit-company" value="动力节点">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="edit-call" class="col-sm-2 control-label">称呼</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <select class="form-control" id="edit-call">
                                <option></option>
                                <c:forEach items="${appellationList}" var="appellation">
                                    <option value="${appellation.value}">${appellation.value}</option>
                                </c:forEach>
                            </select>
                        </div>
                        <label for="edit-surname" class="col-sm-2 control-label">姓名<span
                                style="font-size: 15px; color: red;">*</span></label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="edit-surname" value="李四">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="edit-job" class="col-sm-2 control-label">职位</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="edit-job" value="CTO">
                        </div>
                        <label for="edit-email" class="col-sm-2 control-label">邮箱</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="edit-email" value="lisi@bjpowernode.com">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="edit-phone" class="col-sm-2 control-label">公司座机</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="edit-phone" value="010-84846003">
                        </div>
                        <label for="edit-website" class="col-sm-2 control-label">公司网站</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="edit-website"
                                   value="http://www.bjpowernode.com">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="edit-mphone" class="col-sm-2 control-label">手机</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <input type="text" class="form-control" id="edit-mphone" value="12345678901">
                        </div>
                        <label for="edit-status" class="col-sm-2 control-label">线索状态</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <select class="form-control" id="edit-status">
                                <option></option>
                                <c:forEach items="${stateList}" var="state">
                                    <option value="${state.value}">${state.value}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="edit-source" class="col-sm-2 control-label">线索来源</label>
                        <div class="col-sm-10" style="width: 300px;">
                            <select class="form-control" id="edit-source">
                                <option></option>
                                <c:forEach items="${sourceList}" var="source">
                                    <option value="${source.value}">${source.value}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="edit-describe" class="col-sm-2 control-label">描述</label>
                        <div class="col-sm-10" style="width: 81%;">
                            <textarea class="form-control" rows="3" id="edit-describe">这是一条线索的描述信息</textarea>
                        </div>
                    </div>

                    <div style="height: 1px; width: 103%; background-color: #D5D5D5; left: -13px; position: relative;"></div>

                    <div style="position: relative;top: 15px;">
                        <div class="form-group">
                            <label for="edit-contactSummary" class="col-sm-2 control-label">联系纪要</label>
                            <div class="col-sm-10" style="width: 81%;">
                                <textarea class="form-control" rows="3" id="edit-contactSummary">这个线索即将被转换</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="edit-nextContactTime" class="col-sm-2 control-label">下次联系时间</label>
                            <div class="col-sm-10" style="width: 300px;">
                                <input type="date" class="form-control" id="edit-nextContactTime" value="2017-05-01">
                            </div>
                        </div>
                    </div>

                    <div style="height: 1px; width: 103%; background-color: #D5D5D5; left: -13px; position: relative; top : 10px;"></div>

                    <div style="position: relative;top: 20px;">
                        <div class="form-group">
                            <label for="edit-address" class="col-sm-2 control-label">详细地址</label>
                            <div class="col-sm-10" style="width: 81%;">
                                <textarea class="form-control" rows="1" id="edit-address">北京大兴区大族企业湾</textarea>
                            </div>
                        </div>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-default" id="saveEditBtn">更新</button>
            </div>
        </div>
    </div>
</div>


<div>
    <div style="position: relative; left: 10px; top: -10px;">
        <div class="page-header">
            <h3>线索列表</h3>
        </div>
    </div>
</div>

<div style="position: relative; top: -20px; left: 0px; width: 100%; height: 100%;">

    <div style="width: 100%; position: absolute;top: 5px; left: 10px;">

        <div class="btn-toolbar" role="toolbar" style="height: 80px;">
            <form class="form-inline" role="form" style="position: relative;top: 8%; left: 5px;">

                <div class="form-group">
                    <div class="input-group">
                        <div class="input-group-addon">名称</div>
                        <input class="form-control" type="text" id="query_fullname">
                    </div>
                </div>

                <div class="form-group">
                    <div class="input-group">
                        <div class="input-group-addon">公司</div>
                        <input class="form-control" type="text" id="query_company">
                    </div>
                </div>

                <div class="form-group">
                    <div class="input-group">
                        <div class="input-group-addon">公司座机</div>
                        <input class="form-control" type="text" id="query_phone">
                    </div>
                </div>

                <div class="form-group">
                    <div class="input-group">
                        <div class="input-group-addon">线索来源</div>
                        <select class="form-control" id="query_source">
                            <option></option>
                            <c:forEach items="${sourceList}" var="source">
                                <option value="${source.value}">${source.value}</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>

                <br>

                <div class="form-group">
                    <div class="input-group">
                        <div class="input-group-addon">所有者</div>
                        <select class="form-control" id="query_owner">
                            <option></option>
                            <c:forEach items="${userList}" var="user">
                                <option value="${user.id}">${user.name}</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>


                <div class="form-group">
                    <div class="input-group">
                        <div class="input-group-addon">手机</div>
                        <input class="form-control" type="text" id="query_mphone">
                    </div>
                </div>

                <div class="form-group">
                    <div class="input-group">
                        <div class="input-group-addon">线索状态</div>
                        <select class="form-control" id="query_state">
                            <option></option>
                            <c:forEach items="${stateList}" var="state">
                                <option value="${state.value}">${state.value}</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>

                <button type="button" class="btn btn-default" id="queryBtn">查询</button>

            </form>
        </div>
        <div class="btn-toolbar" role="toolbar"
             style="background-color: #F7F7F7; height: 50px; position: relative;top: 40px;">
            <div class="btn-group" style="position: relative; top: 18%;">
                <button type="button" class="btn btn-primary" id="createBtn"><span
                        class="glyphicon glyphicon-plus"></span> 创建
                </button>
                <button type="button" class="btn btn-default" id="editBtn" ><span
                        class="glyphicon glyphicon-pencil"></span> 修改
                </button>
                <button type="button" class="btn btn-danger" id="deleteBtn"><span class="glyphicon glyphicon-minus"></span> 删除</button>
            </div>


        </div>
        <div style="position: relative;top: 50px;">
            <table class="table table-hover">
                <thead>
                <tr style="color: #B3B3B3;">
                    <td><input type="checkbox"/></td>
                    <td>名称</td>
                    <td>公司</td>
                    <td>公司座机</td>
                    <td>手机</td>
                    <td>线索来源</td>
                    <td>所有者</td>
                    <td>线索状态</td>
                </tr>
                </thead>
                <tbody id="clueBody">
                </tbody>
            </table>
			<div id="bsDiv">

			</div>
        </div>
    </div>
</div>
</body>
</html>